/*
 * @Author: TT-hzy 
 * @Date: 2024-07-05 19:35:43
 * @LastEditors: TT-hzy 
 * @LastEditTime: 2024-07-05 19:42:30
 * @Description: 
 */




import {
  Table,
  Column,
  Model,
  DataType,
  PrimaryKey,
  AutoIncrement,
  AllowNull,
} from 'sequelize-typescript';


@Table({
  modelName: 'users',
  underscored: true,

})

class UserLike extends Model<UserLike> {


  @PrimaryKey
  @AutoIncrement
  @Column({
    type: DataType.INTEGER,
    comment: "喜欢ID",
  })
  id: number;

  @AllowNull
  @Column({
    type: DataType.STRING(30),
    comment: "标题",
  })
  title: string;

}

export default () => UserLike;